package br.com.firula.bo.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import br.com.firula.bo.BolaoBO;
import br.com.firula.dao.BolaoDAO;
import br.com.firula.to.BolaoTO;

@SuppressWarnings("unchecked")
@Service("bolaoBO")
public class BolaoBOImpl extends GenericBOImpl implements BolaoBO {

    @Autowired
    public void setBolaoDAO(BolaoDAO dao) {
        this.dao = dao;
    }

    public BolaoBOImpl(){
    	setType("br.com.firula.to.BolaoTO");
    }

    public BolaoTO getBolaoById(String id) {
    	return (BolaoTO)get(id);
    }
}